import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import index from '@/views/index'
import information from '@/views/information'
import search from '@/views/search'
import user from '@/views/user'
import LayOut from '@/views/LayOut'
import des from '@/views/des'

const router = new VueRouter({
  routes: [
    { path: '/', redirect: 'LayOut' },
    { path: '/des:word', component: des },
    {
      path: '/layout',
      component: LayOut,
      redirect: 'des',
      children: [
        { path: '/des', component: des },
        { path: '/index', component: index },
        { path: '/information', component: information },
        { path: '/search', component: search },
        { path: '/user', component: user }
      ]
    }
  ],
  linkActiveClass: 'active'
})
export default router
